﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Collections;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x020000CF RID: 207
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class AvatarExpUpScRsp : IMessage<AvatarExpUpScRsp>, IMessage, IEquatable<AvatarExpUpScRsp>, IDeepCloneable<AvatarExpUpScRsp>, IBufferMessage
	{
		// Token: 0x170002CC RID: 716
		// (get) Token: 0x0600098D RID: 2445 RVA: 0x0001CB41 File Offset: 0x0001AD41
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<AvatarExpUpScRsp> Parser
		{
			get
			{
				return AvatarExpUpScRsp._parser;
			}
		}

		// Token: 0x170002CD RID: 717
		// (get) Token: 0x0600098E RID: 2446 RVA: 0x0001CB48 File Offset: 0x0001AD48
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return AvatarExpUpScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x170002CE RID: 718
		// (get) Token: 0x0600098F RID: 2447 RVA: 0x0001CB5A File Offset: 0x0001AD5A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return AvatarExpUpScRsp.Descriptor;
			}
		}

		// Token: 0x06000990 RID: 2448 RVA: 0x0001CB61 File Offset: 0x0001AD61
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public AvatarExpUpScRsp()
		{
		}

		// Token: 0x06000991 RID: 2449 RVA: 0x0001CB74 File Offset: 0x0001AD74
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public AvatarExpUpScRsp(AvatarExpUpScRsp other) : this()
		{
			this.returnItemList_ = other.returnItemList_.Clone();
			this.retcode_ = other.retcode_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06000992 RID: 2450 RVA: 0x0001CBAA File Offset: 0x0001ADAA
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public AvatarExpUpScRsp Clone()
		{
			return new AvatarExpUpScRsp(this);
		}

		// Token: 0x170002CF RID: 719
		// (get) Token: 0x06000993 RID: 2451 RVA: 0x0001CBB2 File Offset: 0x0001ADB2
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<PileItem> ReturnItemList
		{
			get
			{
				return this.returnItemList_;
			}
		}

		// Token: 0x170002D0 RID: 720
		// (get) Token: 0x06000994 RID: 2452 RVA: 0x0001CBBA File Offset: 0x0001ADBA
		// (set) Token: 0x06000995 RID: 2453 RVA: 0x0001CBC2 File Offset: 0x0001ADC2
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x06000996 RID: 2454 RVA: 0x0001CBCB File Offset: 0x0001ADCB
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as AvatarExpUpScRsp);
		}

		// Token: 0x06000997 RID: 2455 RVA: 0x0001CBDC File Offset: 0x0001ADDC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(AvatarExpUpScRsp other)
		{
			return other != null && (other == this || (this.returnItemList_.Equals(other.returnItemList_) && this.Retcode == other.Retcode && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06000998 RID: 2456 RVA: 0x0001CC2C File Offset: 0x0001AE2C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			num ^= this.returnItemList_.GetHashCode();
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06000999 RID: 2457 RVA: 0x0001CC79 File Offset: 0x0001AE79
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600099A RID: 2458 RVA: 0x0001CC81 File Offset: 0x0001AE81
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600099B RID: 2459 RVA: 0x0001CC8C File Offset: 0x0001AE8C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			this.returnItemList_.WriteTo(ref output, AvatarExpUpScRsp._repeated_returnItemList_codec);
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(104);
				output.WriteUInt32(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600099C RID: 2460 RVA: 0x0001CCDC File Offset: 0x0001AEDC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			num += this.returnItemList_.CalculateSize(AvatarExpUpScRsp._repeated_returnItemList_codec);
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600099D RID: 2461 RVA: 0x0001CD30 File Offset: 0x0001AF30
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(AvatarExpUpScRsp other)
		{
			if (other == null)
			{
				return;
			}
			this.returnItemList_.Add(other.returnItemList_);
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600099E RID: 2462 RVA: 0x0001CD7D File Offset: 0x0001AF7D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600099F RID: 2463 RVA: 0x0001CD88 File Offset: 0x0001AF88
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 90U)
				{
					if (num != 104U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						this.Retcode = input.ReadUInt32();
					}
				}
				else
				{
					this.returnItemList_.AddEntriesFrom(ref input, AvatarExpUpScRsp._repeated_returnItemList_codec);
				}
			}
		}

		// Token: 0x040003DC RID: 988
		private static readonly MessageParser<AvatarExpUpScRsp> _parser = new MessageParser<AvatarExpUpScRsp>(() => new AvatarExpUpScRsp());

		// Token: 0x040003DD RID: 989
		private UnknownFieldSet _unknownFields;

		// Token: 0x040003DE RID: 990
		public const int ReturnItemListFieldNumber = 11;

		// Token: 0x040003DF RID: 991
		private static readonly FieldCodec<PileItem> _repeated_returnItemList_codec = FieldCodec.ForMessage<PileItem>(90U, PileItem.Parser);

		// Token: 0x040003E0 RID: 992
		private readonly RepeatedField<PileItem> returnItemList_ = new RepeatedField<PileItem>();

		// Token: 0x040003E1 RID: 993
		public const int RetcodeFieldNumber = 13;

		// Token: 0x040003E2 RID: 994
		private uint retcode_;
	}
}
